Extract Data
AutomatR.Windows.Activities.ExtractData
The "Extract Data" activity in AutomatR for Windows UI Automation is used to extract structured information, such as table data, from a Windows application. This activity is designed to retrieve tabular information and store it in a DataTable variable for further processing.
Properties
Name | Description |
---|---|
Input | |
Windows Selector | Allows you to define the UI element using a Windows Selector. Use the browse button to indicate the element on the app. String variables containing the Windows Selector. |
Windows Element | Allows you to provide the UI element directly using the Selector variable. InArgument<Selector> variables containing information about the UI element. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. String variables containing the desired display name. |
Optional | |
Timeout | Specifies the time (in seconds) for the activity to execute before throwing an exception. Integer variables containing the timeout duration. |
Delay | Specifies the amount of time (in seconds) to wait before starting the activity. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs the tabular information from the specified app and stores it under a DataTable variable. DataTable variables to store the extracted data. |
How to use:
- Drag and drop the "Extract Data" activity onto the workflow.
- Configure the properties by either providing the Windows Selector or the Windows Element directly.
- Optionally, configure the timeout and delay settings.
- Execute the workflow to extract tabular information from the specified UI element.
Example: Consider an example where the "Extract Data" activity is used to retrieve table data from a grid within a Windows application:
Extract Data:
Display Name: "Extract Table Data"
Windows Selector: "GridSelector"
Result: extractedTable
Timeout: 20
In this example, the activity extracts tabular information from the UI element with the specified grid selector. The extracted data is stored in the DataTable variable "extractedTable" for further handling in the workflow.